<?php

/**
 * messagesystem.php
 * Created on 2015-10-16
 * Create by liuyang
 */


namespace haibao\www\model\data\message;

class MessageSystem extends \haibao\www\model\data\Base{
  
	const USER_RANGE_ALL = 0;  //所有
	const USER_RANGE_OTHER = 1; //个别用户
	
	const MESSAGE_OBJECT_ALL = 0;  //全部
	const MESSAGE_OBJECT_OTHER = 1; //个别用户
	
    /**
     * 0：所有，其他：个别用户
     */
    public $UserRange;
    
    /**
     * 0 全部 1 个别用户
     */
    public $MessageObject;
    
    /**
     * 消息内容
     */
    public $MessageContent;
    
    /**
     * 创建时间
     */
    public $CreateTime;
    
    public function __construct() {
        parent::__construct();
        
        $this->intField('UserRange', 'UserRange',true);
        $this->intField('MessageObject', 'MessageObject',true);
        $this->stringField('MessageContent', 'MessageContent',true);
        $this->dateField('CreateTime', 'CreateTime',true);
        
        $this->setTableName('MessageSystem');
    }
}